package world.ztomorrow.novel.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import world.ztomorrow.novel.dto.AuthorInfoDto;


@FeignClient("yc-author")
@RestController
public interface AuthorClient {

    @GetMapping("/get_author")
    AuthorInfoDto getAuthorById(@RequestParam("id") Long id);
}
